package com.gzz.orchid.common.webmvc.securityjwt;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author higmd
 */
public class JwtAuthToken extends AbstractAuthenticationToken {
    private Object principal;
    private String credentials;

    public JwtAuthToken() {
        super(null);
    }

    public JwtAuthToken(Collection<? extends GrantedAuthority> authorities) {
        super(authorities);
    }


    @Override
    public Object getCredentials() {
        return credentials;
    }

    @Override
    public Object getPrincipal() {
        return principal;
    }
}
